﻿#region 文件信息

/*----------------------------------------------------------------
//
// 文件名称：
// 文件功能描述：
// 设计要求：
//
// 文 件 名：    FlowNode
// 创建者：      杨程
// 创建日期：	    2022/12/18 15:17:42

//----------------------------------------------------------------*/

#endregion

namespace Vampirewal.Core.WPF.Theme;

/// <summary>
/// 流程节点
/// </summary>
public partial class FlowNode : Thumb
{
    static FlowNode()
    {
        DefaultStyleKeyProperty.OverrideMetadata(typeof(FlowNode), new FrameworkPropertyMetadata(typeof(FlowNode)));
    }

    /// <summary>
    ///
    /// </summary>
    public FlowNode()
    {
        //构造函数
    }

    #region [     依赖属性     ]

    #region 节点类型

    public int NodeType
    {
        get { return (int)GetValue(NodeTypeProperty); }
        set { SetValue(NodeTypeProperty, value); }
    }

    // Using a DependencyProperty as the backing store for NodeType.  This enables animation, styling, binding, etc...
    public static readonly DependencyProperty NodeTypeProperty =
        DependencyProperty.Register("NodeType", typeof(int), typeof(FlowNode), new PropertyMetadata(0));

    #endregion

    #region 显示文字

    public string NodeName
    {
        get { return (string)GetValue(NodeNameProperty); }
        set { SetValue(NodeNameProperty, value); }
    }

    // Using a DependencyProperty as the backing store for NodeName.  This enables animation, styling, binding, etc...
    public static readonly DependencyProperty NodeNameProperty =
        DependencyProperty.Register("NodeName", typeof(string), typeof(FlowNode), new PropertyMetadata(""));

    #endregion

    #endregion
}